home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archivers / XMash_V1.2 / File_Format.DOC < prev    next >
Text File  |  1996-09-26  |  1KB  |  36 lines

  1. xmash's file format is as follows
  2.  
  3. bytes 0-2 MSH (file format ID, this is how you find out if a file is an
  4. XMASH file or not)
  5.  
  6. bytes 2-END are made up of seperate blocks defined below
  7.  
  8.  
  9. (byte numbers in blocks below are relative the the start of the block itself)
  10.  
  11. Text/Advert Block
  12. =================
  13. 0      Text Block ID Character is "B" for banner
  14. 1-2    Dummy data, not used for the moment, should be 0's
  15. 3-6    Compressed Block Length (so from this point skip this many bytes forward to find the next block)
  16. 6-END  XPK Compressed Text
  17.  
  18. File_ID Block
  19. =============
  20. same as text only ID charater is "F" for FILE_ID
  21.  
  22. Track Data Block
  23. ================
  24. 0      ID Byte for Block is "D" for DATA
  25. 1      TRACK number (not cylinder number)
  26. 2      TRACKS (so range on disk would be TRACK to TRACK+TRACKS
  27. 3-6    Compressed BlockLength.  Uncompress this and write data to disk..
  28. 7-END  XPK Compressed Track Data
  29.  
  30.  
  31. As you can see all blocks are made up in moreorless the same format.
  32. if you design your own blocks then keep tothe format BLOCKID,2 bytes MISC,
  33. 4 Bytes Length, rest of info..  so that other programs can skip unknown
  34. blocks correctly..
  35.  
  36.